<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>{$page_title}</title>
        <script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
        <script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
        <script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
        <script language="javascript" type="text/javascript" src="{res file=DatePicker/WdatePicker.js}"></script>
        <script language="javascript" type="text/javascript" src="{lib file=ajaxfileupload.js}"></script>
        <script language="javascript" type="text/javascript" src="{res file=js/jquery.funkyUI.js}"></script>
        <script language="JavaScript" type="text/javascript" src="{res file=js/lan.js}"></script>
        <link href="template/style/css/style.css" type="text/css" rel="stylesheet" />
        <script language="javascript" type="text/javascript" src="{res file=js/select.js}"></script>
        <style>
            label.error {color:red;}
			th.center, td.center {text-align:center;}
        </style>
    </head>
<body>
<script type="text/javascript">
$(function() {
	$('#factory_id').change(function() {
		$('#factory_name').val($(this).children(':selected').html());
	});
	if ($('#factory_name').val() == '') {
		$('#factory_id').change();
	}
	$('select[select_input="select_input"]').each(function(i) {
		init_select_input($(this));
	});
	$('div.select-input').each(function(i) {
		$(this).css('z-index', $('div.select-input').length - i);
	});
	$('#add_fabric_info').click(function() {
		var tr = $('<tr><td colspan="3"></td><td colspan="3"></td><td></td></tr>');
		var sel_input = $($('#fabric_shop_data').html());
		sel_input.attr('select_input', 'select_input');
		sel_input.attr('name', 'new_fabric_info[][fabric_shop_id]');
		sel_input.attr('id', 'new_fabric_info[][fabric_shop_id]');
		sel_input.attr('class', 'input-3');
		var desc = $('<input type="text" class="input-3" name="new_fabric_info[][description]">');
		tr.find('td:eq(0)').append(desc);
		tr.find('td:eq(1)').append(init_select_input(sel_input));
		$('div.select-input').each(function(i) {
			$(this).css('z-index', $('div.select-input').length - i);
		});
		tr.css('background-color', '#F4F8FA');
		var add_fabric_shop = $('#add_fabric_shop');
		tr.insertAfter(add_fabric_shop.parents('tr'));
		if ($('input.btn-2[value="移除"]').length < 1) {
			add_fabric_shop.parent().append($('<input type="button" value="移除" class="btn-2" />'));
		}
		tr.find('td:eq(2)').append($('<input type="button" value="移除" class="btn-2" />'));
		tr.find('td:eq(2)').append(add_fabric_shop);
		$('input.btn-2[value="移除"]').click(function() {
			remove_fabric_shop($(this));
		});
		sort_new_fabric_info();
	});
	$('input.btn-2[value="移除"]').click(function() {
		remove_fabric_shop($(this));
	});
	$('#add_fabric_shop').click(function() {
		var value = $.trim(prompt("请输入布行/档口名称：", ''));
		if (value != '' && confirm('系统将增加此布行信息到系统，请确认是否重复。\r\n' + value + '\r\n确定要添加该布行吗？')) {
			$.post('index.php?app=fabric_shop&act=AjaxAdd', {'fabric_shop_name' : value}, function(json) {
				if (json.done) {
					ref_fabric_shop();
				}
				alert(json.msg);
			}, 'json');
		}
	});
	$('input[acttype="confirm"]').click(function() {
		if (confirm('是否已经保存信息？更新样板信息之后将会使已确认样板状态无效。\r\n\r\n是否继续？')) {
			$.getJSON('index.php?app=sample&act=confirm&id={$smarty.get.id}', function(json) {
				alert(json.msg);
			});
		}
	});
	<!--{if $order.confirm_date || $order.status == 5}-->
	$('[name^="new_fabric_info"]').attr('disabled', true);
	$('[name^="old_fabric_info"]').attr('disabled', true);
	$('input.input-3').attr('disabled', true);
	<!--{/if}-->
});

function sort_new_fabric_info()
{
	$('input[name^="new_fabric_info"][name$="[description]"]').each(function(i) {
		$(this).attr('name', 'new_fabric_info[' + i + '][description]');
	});
	$('input[name^="new_fabric_info"][name$="[fabric_shop_id]"]').each(function(i) {
		$(this).attr('name', 'new_fabric_info[' + i + '][fabric_shop_id]');
		$(this).attr('id', 'new_fabric_info[' + i + '][fabric_shop_id]');
	});
}

function remove_fabric_shop(_this)
{
	if (!confirm('确定要移除该面料信息吗？')) {
		return;
	}
	var add_fabric_shop = $('#add_fabric_shop');
	if ($('input.btn-2[value="移除"]').length == 1) {
		$('#add_fabric_info').click();
	}
	_this.parents('tr').remove();
	add_fabric_shop.insertAfter($('input.btn-2[value="移除"]:last'));
	sort_new_fabric_info();
}

function get_sample(obj){
	var id=obj.value;
	if(!id) return;
	$.getJSON('index.php?app=order&act=getsample&ajax=1&id='+id,function(json){
		if(json.done){
			$('#arrival_date').attr('value',json.retval.arrival_date);
			if(json.retval.front_pic!=''){
				$('#front_pic').attr('value',json.retval.front_pic);
				$('#front_image').attr('src',json.retval.front_pic);
				$('#front_image').show();
			}
			if(json.retval.other_pic!=''){
				$('#back_image').attr('src',json.retval.other_pic);
				$('#back_pic').attr('value',json.retval.other_pic);
				$('#back_image').show();
			}
			$('#style_id').attr('value',json.retval.style_id);
			$('#special_id').attr('value',json.retval.special_id);
			$('#factory_id').attr('value',json.retval.factory_id);
			$('#fabric_id').attr('value',json.retval.fabric_id);
			$('#feature_id').attr('value',json.retval.feature_id);
			$('#factory_files').html('');
			var files = json.retval.factory_files;
			for (var key in files) {
				$('#factory_files').html($('#factory_files').html() + ($('#factory_files').html() == '' ? '' : '<br />'));
				$('#factory_files').html($('#factory_files').html() + '<a href="download.php?id=' + files[key].file_id + '">' + files[key].file_name + '</a><a class="pic_del" href="{url app=comupload&act=delete&id=}' + files[key].file_id + '" onClick="return confirm(\'{$lang.confirm_del_file}\')" title="{$lang.delete}">&nbsp;</a>');
			}
		}else{
			alert(json.msg);
		}
	});
}

function change_pic(id){
	$.funkyUI({url:"index.php?app=comupload&act=order_pics&id="+id,css:{width:"350",height:"250"}});
	return false;
}

function confirm_order(id) {
	if(!confirm('确认后不可修改，确认？')) {
		return false;
	}
	$.getJSON('index.php?app=order&act=update_status&status=2&ajax=1&id=' + id, function(json) {
		if(json.done) {
			location.href = location.href;
		} else {
			alert(json.msg);
		}
	});
}
function cancel_order(id){
	if(!confirm('取消后不可修改，确认？')) {
		return false;
	}
	$.getJSON( 'index.php?app=order&act=update_status&status=5&ajax=1&id=' + id, function(json) {
		if(json.done) {
			location.href = location.href;
		} else {
			alert(json.msg);
		}
	});
}
function chuhuo(id)
{
	if (confirm('确认已出货？')) {
		$.getJSON('index.php?app=order&act=update_status&status=3&ajax=1&id=' + id, function(json) {
			if (json.done) {
				location.href = location.href;
			} else {
				alert(json.msg);
			}
		});
	}
}
</script>
<div id="fabric_shop_data" style="display:none;"><select><!--{foreach from=$fabricshop_list item=fabric_shop}--><option value="{$fabric_shop.fabric_shop_id}">{$fabric_shop.fabric_shop_name|escape}</option><!--{/foreach}--></select></div>
<div class="sub-body">
	<h3 class="title-1 tab-frame">订单信息</h3>
    <div class="tab-frame">
		<form method="post">
		<table align="left" cellpadding="0" cellspacing="0" class="tab-add" id="tab-color1">
        	<tr>
            	<th width="100">下单日期：</th>
            	<td colspan="2" width="360">{$order.order_create_date|date}&nbsp;&nbsp;状态：{$lang.order_status.$order.status}</td>
            	<th colspan="2" width="300">正面</th>
            	<th colspan="2" width="300">反面</th>
            </tr>
        	<tr>
            	<th>品&nbsp;&nbsp;&nbsp;&nbsp;牌：</th>
            	<td colspan="2"><select name="info[brand_id]" id="brand_id" onChange="brand_change(this.value);" class="input-1" disabled>
					<option value="0">{$lang.select_pls}</option>
					<!--{foreach from=$brand_list item=brand key=k}-->
					<option value="{$brand.brand_id}"{if $order.brand_id == $brand.brand_id} selected{/if}>{$brand.brand_name}</option>
					<!--{/foreach}-->
				</select></td>
            	<td colspan="2" rowspan="10" style="text-align:center;"><img id="front_image" width="280" src="{$order.front_pic}" alt=""></td>
            	<td colspan="2" rowspan="10" style="text-align:center;"><img id="back_image" width="280" src="{$order.back_pic}" alt=""></td>
            </tr>
        	<tr>
            	<th>买&nbsp;&nbsp;&nbsp;&nbsp;手：</th>
            	<td colspan="2"><select name="info[buyer_id]" id="buyer_id" class="input-1" onchange="buyer_change(this.value)" disabled>
					<option value="0">{$lang.select_pls}</option>
					<!--{foreach from=$buyer_list item=buyer key=k}-->
					<option value="{$buyer.buyer_id}"{if $order.buyer_id == $buyer.buyer_id} selected{/if}>{$buyer.buyer_name}</option>
					<!--{/foreach}-->
				</select></td>
            </tr>
        	<tr>
            	<th>跟&nbsp;&nbsp;&nbsp;&nbsp;单：</th>
            	<td colspan="2"><select name="info[merchandiser_list]" id="merchandiser_id" class="input-1" disabled>
					<option value="0">{$lang.select_pls}</option>
					<!--{foreach from=$merchandiser_list item=merchandiser key=k}-->
					<option value="{$merchandiser.merchandiser_id}"{if $order.merchandiser_id == $merchandiser.user_id} selected{/if}>{$merchandiser.user_name}</option>
					<!--{/foreach}-->
				</select></td>
            </tr>
        	<tr>
            	<th>订&nbsp;单&nbsp;号：</th>
            	<td colspan="2">{$order.order_sn|escape}</td>
            </tr>
        	<tr>
            	<th>款&nbsp;&nbsp;&nbsp;&nbsp;号：</th>
            	<td colspan="2"><input type="text" class="input-1" name="info[style_sn]" id="style_sn" value="{$order.style_sn}"{if $order.confirm_date || $order.status == 5} disabled{/if} /></td>
            </tr>
        	<tr>
            	<th>参考板号：</th>
            	<td colspan="2"><select name="info[sample_id]" id="sample_id" class="input-1" onchange="get_sample(this)"{if $order.confirm_date || $order.status == 5} disabled{/if}>
					<option value="0">{$lang.select_pls}</option>
					<!--{foreach from=$sample_list item=sample key=k}-->
					<option value="{$sample.sample_id}"{if $order.sample_id == $sample.sample_id} selected{/if}>{$sample.sample_sn}</option>
					<!--{/foreach}-->
				</select></td>
            </tr>
        	<tr>
            	<th>到板日期：</th>
            	<td colspan="2"><input type="text" class="input-1" name="info[arrival_date]" id="arrival_date"  value="{$order.arrival_date|date}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"{if $order.confirm_date || $order.status == 5} disabled{/if}/></td>
            </tr>
        	<tr>
            	<th>款&nbsp;&nbsp;&nbsp;&nbsp;式：</th>
            	<td colspan="2"><select name="info[style_id]" id="style_id" class="input-1"{if $order.confirm_date || $order.status == 5} disabled{/if}>
					<option value="0">{$lang.select_pls}</option>
					<!--{foreach from=$style_list item=style key=k}-->
					<option value="{$style.style_id}"{if $order.style_id == $style.style_id} selected{/if}>{$style.style_name}</option>
					<!--{/foreach}-->
				</select></td>
            </tr>
        	<tr>
            	<th>工&nbsp;&nbsp;&nbsp;&nbsp;厂：</th>
            	<td colspan="2"><select name="info[factory_id]" id="factory_id" class="input-2"{if $order.confirm_date || $order.status == 5} disabled{/if}>
					<option value="0">{$lang.select_pls}</option>
					<!--{foreach from=$factory_list item=factory key=k}-->
					<option value="{$factory.factory_id}"{if $order.factory_name == $factory.factory_name} selected{/if}>{$factory.factory_name}</option>
					<!--{/foreach}-->
				</select><input type="hidden" name="info[factory_name]" id="factory_name" value="{$order.factory_name}" /></td>
            </tr>
        	<tr>
            	<th>运&nbsp;&nbsp;&nbsp;&nbsp;输：</th>
            	<td colspan="2"><select name="info[trans_type]" id="trans_type"{if $order.confirm_date || $order.status == 5} disabled{/if}>
                            <option value="0">海运</option>
                            <option value="1"{if $order.trans_type == 1} selected{/if}>空运</option>
                        </select></td>
            </tr>
        	<tr>
            	<th>件&nbsp;&nbsp;&nbsp;&nbsp;数：</th>
            	<td colspan="2"><input type="text" class="input-1" name="info[quantity]" id="quantity" value="{$order.quantity}"{if $order.confirm_date || $order.status == 5} disabled{/if} /></td>
            	<td colspan="4" style="text-align:center;"><!--{if !$order.confirm_date && $order.status != 5}--><input id="front_pic" type="hidden" name="info[front_pic]" value="{$order.front_pic}"><input id="back_pic" type="hidden" name="info[back_pic]" value="{$order.back_pic}"><input type="button" onclick="change_pic('{$order.order_id}');" class="btn-3" value="更新图片"><!--{/if}--></td>
            </tr>
        	<tr>
            	<th>工厂价格：</th>
            	<td colspan="2"><input type="text" class="input-1" name="info[factory_price]" id="factory_price" value="{$order.factory_price}"{if $order.confirm_date || $order.status == 5} disabled{/if} /></td>
            	<td colspan="4"></td>
            </tr>
        	<tr>
            	<th>客人价格：</th>
            	<td colspan="2"><input type="text" class="input-1" name="info[customer_price]" id="customer_price" value="{$order.customer_price}"{if $order.confirm_date || $order.status == 5} disabled{/if} /></td>
            	<td colspan="4"></td>
            </tr>
        	<tr>
            	<th>工厂入仓日期：</th>
            	<td colspan="2"><input type="text" class="input-1" name="info[release_date]" id="release_date" value="{$order.release_date|date}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"{if $order.confirm_date || $order.status == 5} disabled{/if}/></td>
            	<td colspan="4"></td>
            </tr>
        	<tr>
            	<th>客人入仓日期：</th>
            	<td colspan="2"><input type="text" class="input-1" name="info[buyer_arrival_date]" id="buyer_arrival_date" value="{$order.buyer_arrival_date|date}"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"{if $order.confirm_date || $order.status == 5} disabled{/if}/></td>
            	<td colspan="4"></td>
            </tr>
        	<tr>
            	<th>报&nbsp;价&nbsp;单：</th>
            	<td colspan="2" id="factory_files"><!--{foreach from=$file_price item=file}--><a href="download.php?id={$file.file_id}">{$file.file_name}</a><a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}--><!--{/foreach}--></td>
            	<td colspan="4"></td>
            </tr>
			<tr>
				<td colspan="7">&nbsp;</td>
			</tr>
            <tr>
            	<th>状态信息：</th>
                <td colspan="6">
                	<label><input type="checkbox" name="info[chb_bd]" value="OK"{if $order.chb_bd} checked{/if} />&nbsp;板到(S)&nbsp;</label>/
                	<label><input type="checkbox" name="info[chb_jgqr]" value="OK"{if $order.chb_jgqr} checked{/if} />&nbsp;价格确认(P)&nbsp;</label>/
                	<label><input type="checkbox" name="info[chb_pbqr]" value="OK"{if $order.chb_pbqr} checked{/if} />&nbsp;批板确认(P)&nbsp;</label>/
                	<label><input type="checkbox" name="info[chb_dhb]" value="OK"{if $order.chb_dhb} checked{/if} />&nbsp;大货布(B)&nbsp;</label>/
                	<label><input type="checkbox" name="info[chb_cc]" value="OK"{if $order.chb_cc} checked{/if} />&nbsp;初查(F)&nbsp;</label>/
                	<label><input type="checkbox" name="info[chb_wc]" value="OK"{if $order.chb_wc} checked{/if} />&nbsp;尾查(L)&nbsp;</label>/
                	<label><input type="checkbox" name="info[chb_ctb]" value="OK"{if $order.chb_ctb} checked{/if} />&nbsp;船头板(S)&nbsp;</label>
                </td>
            </tr>
			<tr>
				<th>备注：</th>
				<td colspan="4"><textarea style="width:90%; height:60px;" name="info[description]">{$order.description}</textarea></td>
                <td colspan="2" class="center">
					<input type="submit" class="btn-2" value="更新订单" />&nbsp;&nbsp;
					<input type="button" class="btn-2" value="返回" onclick="history.back();" /><br /><br />
					<input type="button" class="btn-2" value="确认订单" onclick="confirm_order({$order.order_id});" />&nbsp;&nbsp;
					<input type="button" class="btn-2" value="取消订单" onclick="cancel_order({$order.order_id})" /></td>
			</tr>
			<tr>
				<td colspan="7">&nbsp;</td>
			</tr>
			<tr>
            	<th>面料信息</th>
				<th colspan="6"><input type="button" class="btn-2" value="新增面料信息" id="add_fabric_info"{if $order.confirm_date || $order.status == 5} disabled{/if} /></th>
			</tr>
			<tr>
				<th colspan="3" class="center">描述</th>
				<th colspan="3" class="center">布行</th>
				<th class="center"></th>
			</tr>
	  <!--{if $fabric_info_list}-->
	  <!--{foreach from=$fabric_info_list item=fabric_info name=fi}-->
			<tr>
				<td colspan="3" ><input type="text" class="input-3" name="old_fabric_info[{$fabric_info.fabric_info_id}][description]" value="{$fabric_info.description|escape}"></td>
				<td colspan="3" ><select select_input="select_input" name="old_fabric_info[{$fabric_info.fabric_info_id}][fabric_shop_id]" id="old_fabric_info[{$fabric_info.fabric_info_id}][fabric_shop_id]" class="input-3" val="{$fabric_info.fabric_shop_id}">
		  	<!--{foreach from=$fabricshop_list item=fabric_shop}-->
			<option value="{$fabric_shop.fabric_shop_id}">{$fabric_shop.fabric_shop_name|escape}</option>
			<!--{/foreach}-->
		</select></td>
				<td><input type="button" class="btn-2" value="移除"{if $order.confirm_date || $order.status == 5} disabled{/if}><!--{if $smarty.foreach.fi.last}--><input type="button" class="btn-2" value="增加布行" id="add_fabric_shop"{if $order.confirm_date || $order.status == 5} disabled{/if} /><!--{/if}--></td>
			</tr>
	  <!--{/foreach}-->
	  <!--{else}-->
			<tr>
				<td colspan="3" ><input type="text" class="input-3" name="new_fabric_info[0][description]"></td>
				<td colspan="3" ><select select_input="select_input" name="new_fabric_info[0][fabric_shop_id]" id="new_fabric_info[0][fabric_shop_id]" class="input-3">
		  	<!--{foreach from=$fabricshop_list item=fabric_shop}-->
			<option value="{$fabric_shop.fabric_shop_id}">{$fabric_shop.fabric_shop_name|escape}</option>
			<!--{/foreach}-->
		</select></td>
				<td><input type="button" class="btn-2" value="增加布行" id="add_fabric_shop"{if $order.confirm_date || $order.status == 5} disabled{/if} /></td>
			</tr>
	  <!--{/if}-->
			<tr>
				<td colspan="7">&nbsp;</td>
			</tr>
			<tr>
				<th colspan="7">附件</th>
			</tr>
			<tr>
				<th rowspan="2">合同信息：</th>
				<td id="file_hetong"><!--{foreach from=$file_hetong item=file}--><a href="download.php?id={$file.file_id}">{$file.file_name}</a><a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}--><!--{/foreach}--></td>
				<th rowspan="2">制单信息：</th>
				<td id="file_zhidan"><!--{foreach from=$file_zhidan item=file}--><a href="download.php?id={$file.file_id}">{$file.file_name}</a><a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}--><!--{/foreach}--></td>
				<th rowspan="2">批改意见：</th>
				<td id="file_pigai"><!--{foreach from=$file_pigai item=file}--><a href="download.php?id={$file.file_id}">{$file.file_name}</a><a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}--><!--{/foreach}--></td>
				<td rowspan="4" align="center" valign="middle"><!--{if $role == USER_MANAGER}--><input type="button" class="btn-2" value="已出货" onclick="chuhuo({$order.order_id});return false;"{if $order.status == 3} disabled{/if} /><!--{else}-->&nbsp;<!--{/if}--></td>
			</tr>
            <tr>
            	<td><input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_hetong}, {$order.order_id});" /></td>
            	<td><input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_zhidan}, {$order.order_id});" /></td>
            	<td><input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_pigai}, {$order.order_id});" /></td>
            </tr>
			<tr>
				<th rowspan="2">查货信息：</th>
				<td id="file_chahuo"><!--{foreach from=$file_chahuo item=file}--><a href="download.php?id={$file.file_id}">{$file.file_name}</a><a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}--><!--{/foreach}--></td>
				<th rowspan="2">担保走货：</th>
				<td id="file_danbao"><!--{foreach from=$file_danbao item=file}--><a href="download.php?id={$file.file_id}">{$file.file_name}</a><a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}--><!--{/foreach}--></td>
				<th rowspan="2">扣款通知：</th>
				<td id="file_koukuan"><!--{foreach from=$file_koukuan item=file}--><a href="download.php?id={$file.file_id}">{$file.file_name}</a><a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a><!--{if !$smarty.foreach.last}--><br /><!--{/if}--><!--{/foreach}--></td>
			</tr>
            <tr>
            	<td><input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_chahuo}, {$order.order_id});" /></td>
            	<td><input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_danbao}, {$order.order_id});" /></td>
            	<td><input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_koukuan}, {$order.order_id});" /></td>
            </tr>
		</table>
		</form>
	</div>
</div>
<script language="JavaScript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</body>
</html>